
	
<?php
if ($js){ 
	echo js_asset('jquery-1.8.3.min.js','jquery-ui-bootstrap');
if (
@$bagian == "detail"){
?>

	<script>
		// <!--
		$(function(){
			$('#btn-exportdetail').click(function(){
				window.open("<?php echo base_url() ?>report/print/laporandetailjadwal.xls");
			});
		});
		// -->
	</script>
	
	<button id="btn-exportdetail" class="btn btn-info">Export Excel</button>
	<?php echo $content ?>
<?php
}else if (@$bagian == "pq"){
?>
	<script>
		// <!--
		$(function(){
		$('#btn-exportpq').click(function(){
			window.open("<?php echo base_url() ?>report/print/pq.xls");
		});
		});
		// -->
	</script>
	<button id="btn-exportpic" class="btn btn-info">Export Excel</button>
	<?php echo $content ?>
<?php
}else if (@$bagian == "pic"){
?>
	<script>
		// <!--
		$(function(){
		$('#btn-exportpic').click(function(){
			window.open("<?php echo base_url() ?>report/print/pic.xls");
		});
		});
		// -->
	</script>
	<button id="btn-exportpic" class="btn btn-info">Export Excel</button>
	<?php echo $content ?>
<?php
}else if (@$bagian == "hasil"){
?>
	<script>
		// <!--
		$(function(){
		$('#btn-exporthasil').click(function(){
			window.open("<?php echo base_url() ?>report/print/hasil.xls");
		});
		});
		// -->
	</script>
	<button id="btn-exporthasil" class="btn btn-info">Export Excel</button>
	<?php echo $content ?>
<?php
}else if (@$bagian == "masterlist"){
?>
	<script>
		// <!--
		$(function(){
		$('#btn-exportmasterlist').click(function(){
			window.open("<?php echo base_url() ?>report/print/masterlist.xls");
		});
		});
		// -->
	</script>
	<button id="btn-exportmasterlist" class="btn btn-info">Export Excel</button>
	<?php echo $content ?>
<?php
}else if (@$bagian == "tenderpekan"){
?>
	<script>
		// <!--
		$(function(){
		$('#btn-exporttenderpekan').click(function(){
			window.open("<?php echo base_url() ?>report/print/tenderpekan.xls");
		});
		});
		// -->
	</script>
	<button id="btn-exporttenderpekan" class="btn btn-info">Export Excel</button>
	<?php echo $content ?>
<?php
}else if (@$bagian == "rekap"){
?>
	<script>
		// <!--
		$(function(){
		$('#btn-exportrekap').click(function(){
			window.open("<?php echo base_url() ?>report/print/rekap.xls");
		});
		});
		// -->
	</script>
	<button id="btn-exportrekap" class="btn btn-info">Export Excel</button>
	<?php echo $content ?>
<?php
}

}else{
?>
	<script>
		// <!--
		$(function(){
		$('#btn-export<?php echo $bagian; ?>').click(function(){
			window.open("<?php echo base_url() ?>report/print/<?php echo $bagian; ?>.xls");
		});
		});
		// -->
	</script>
	<button id="btn-export<?php echo $bagian; ?>" class="btn btn-info">Export Excel</button>
	<iframe name="laporan<?php echo $bagian; ?>" src="<?php echo base_url() ?>report/print/<?php echo $bagian; ?>.html" width="100%" height="1000" style="border:0px"></iframe>
<?php

}

?>